//
//  SYKaoShiSelectTableViewCell.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/26.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYKaoShiSelectTableViewCell.h"


@interface SYKaoShiSelectTableViewCell ()



@end


@implementation SYKaoShiSelectTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setAlterViewModel:(SYExamInfoClassesModel *)alterViewModel {
    if (alterViewModel.isSelect == YES) {
        self.selectImage.image = [UIImage imageNamed:@"yj_xuanze_xuesheng"];
    } else {
        self.selectImage.image = [UIImage imageNamed:@"yj_xuanze_noxues"];
    }
    
    self.nameLab.text = alterViewModel.className;
    
}

- (void)setXueshengModel:(SYExamInfoStudentsModel *)xueshengModel {
    
    if (xueshengModel.newisSelect == YES) {
        self.selectImage.image = [UIImage imageNamed:@"yj_xuanze_xuesheng"];
    } else {
//        if (xueshengModel.isSelect == YES) {
//            self.selectImage.image = [UIImage imageNamed:@"yj_xuanze_xuesheng"];
//        } else {
            self.selectImage.image = [UIImage imageNamed:@"yj_xuanze_noxues"];
//        }
    }
    
    
    
    self.nameLab.text = xueshengModel.studentName;
}



@end
